<?php


class Object
{
    // ...
}

/**
 * A counter class
 */
class Counter extends Object
{
    const START = 1;
    private static $c = Counter::START;

    /**
     * Invoke counter
     *
     * @access  public
     * @return  int
     */
    public function count($x,$y) {
        return $x+$y;
    }
}

// Create an instance of the ReflectionClass class
$class = new ReflectionClass('Counter');
$method = new ReflectionMethod('Counter', 'count');

echo $method->invokeArgs($class->newInstance(),array(11,12)) ;
?> 